-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Spark plugin] Fix environment variable ValueFrom for pod templates #4532
[Spark plugin] Fix environment variable ValueFrom for pod templates #4532
Conversation
Signed-off-by: Thomas Newton <[email protected]>
…vVars Signed-off-by: Thomas Newton <[email protected]>
Signed-off-by: Thomas Newton <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4532 +/- ##
=======================================
Coverage 58.89% 58.89%
=======================================
Files 620 620
Lines 52458 52458
=======================================
Hits 30895 30895
- Misses 19095 19096 +1
+ Partials 2468 2467 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
…4532) * Update tests Signed-off-by: Thomas Newton <[email protected]> * Use Copy Container.Env to SparkPodSpec.Env instead of SparkPodSpec.EnvVars Signed-off-by: Thomas Newton <[email protected]> * Fix list initialisation Signed-off-by: Thomas Newton <[email protected]> --------- Signed-off-by: Thomas Newton <[email protected]> Co-authored-by: Dan Rammer <[email protected]> Signed-off-by: Paul Dittamo <[email protected]>
Tracking issue
Closes #4530
Why are the changes needed?
To support using ValueFrom for environment variables configured in pod templates.
What changes were proposed in this pull request?
Put
Container.Env
from the pod template intoSparkPodSpec.Env
instead ofSparkPodSpec.EnvVars
.This means all the ValueFrom features of
corev1.EnvVar
should be supported.How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link